POV-Ray : Newsgroups : povray.general : Even/odd check? : Re: Even/odd check? Server Time
7 Aug 2024 09:27:06 EDT (-0400)
  Re: Even/odd check?  
From: Rune
Date: 7 Oct 2001 16:18:57
Message: <3bc0b8b1@news.povray.org>
"Mahalis" wrote:
> How would you test whether a number
> was even or odd in POV 3.1?

(N/2=int(N/2))

Rune
--
3D images and anims, include files, tutorials and more:
Rune's World:    http://rsj.mobilixnet.dk (updated June 26)
POV-Ray Users:   http://rsj.mobilixnet.dk/povrayusers/
POV-Ray Webring: http://webring.povray.co.uk


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.